// pages/qrcode/qrcode.js
import request from "../../utils/request"
Page({

  /**
   * 页面的初始数据
   */
  data: {
    images: "",
  },

  onLoad(){
    let that = this
    request({
      url:'/auth/authQRCode',
      method:'GET',
    }).then(res=>{
      console.log(res);
      if(res.code === 200){
        that.setData({
          images: res.data, //设置data里面的图片url
        })
      }else{
        console.log(res.message);
      }
    })
  }
})